package com.syni.mdd.sjb.common.component.mybatis.dxshapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 电享生活app消息表
 * </p>
 *
 * @author lcc
 * @since 2020-05-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class DxshAppUserNewsSwitch implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 推送用户
     */
    private Integer userId;

    private Integer businessId;

    /**
     * 消息类型
     */
    private Integer parentType;

    private Integer messageType;

    private Integer secondMessageType;

    private Integer firstMessageTypeId;

    /**
     * 开关，0：关，1：开
     */
    private Integer isOpen = 0;

    /**
     * 创建时间
     */
    private LocalDateTime newTime;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String BUSINESS_ID = "business_id";

    public static final String IS_OPEN = "is_open";

    public static final String NEW_TIME = "new_time";

    public static final String FIRST_MESSAGE_TYPE_ID = "first_message_type_id";

    public static final String SECOND_MESSAGE_TYPE = "second_message_type";

    public static final String MESSAGE_TYPE = "message_type";

}
